<?php


namespace App\Model;
/*
 * filename : index.class.php  
 * encoding : UTF-8 
 * Author : lv dong lin
 * Copyright : Copyright © 2017 lfox418@aliyun.com. All rights reserved.
 * Datetime : 2017-9-10 10:16:14
 * Description :  
 */


use Publics\baseModel;
/**
 * Description of index
 *
 * @author Administrator
 */
class cdydzsModel extends baseModel {
    
    public function __construct() {
        parent::__construct();
        $k = config('project');
        if (isset($k[__ACTION__])) {
            $this->root = $k[__ACTION__];
        } else {
            $this->root = 'YUANDUROOT';
        }
    }
    
    public function setPageNum($pageName, $data){
        
        $num = intval($this->redis->getHash($this->root, $pageName));
        if (is_numeric($num)) {
            $data+=$num;
        }
        $this->redis->setHash($this->root, $pageName, $data);
    }
    //put your code here
}
